// 示例：http://127.0.0.1:3000/1512351.html

const express = require('express')
const app = express()

app.get('/:id.html', (req, res) => {
  console.log(req.params.id)  //该处的id必须和路由中设置的占位符一致
  res.send('ok')
})

app.listen(3000, () => {
  console.log('server running at http://127.0.0.1:3000/121321.html')
})